import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Mainx {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] arr = new String[n];
        for (int i = 0; i < n; i++) {
            arr[i] = sc.next();
        }
        List list = new ArrayList();
        for(int i=0;i<arr.length;i++){
            if(!list.contains(arr[i])){
                list.add(arr[i]);
            }
        }
        Object[] newArr = list.toArray();
        for(int i=0;i<newArr.length;i++){
            System.out.println(newArr[i]);
        }
    }
}













